package io.sdl.common.sys.service;

import io.sdl.common.service.CrudService;
import io.sdl.common.sys.dto.SdlSessionMessageDTO;
import io.sdl.common.sys.entity.SdlDoctorPatientSessionEntity;
import io.sdl.common.sys.entity.SdlSessionMessageEntity;
import io.sdl.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 会话聊天消息表
 *
 * @author Dchen
 * @email 1211734836@qq.com
 * @date 2025-05-13 14:31:02
 */
public interface SdlSessionMessageService extends CrudService<SdlSessionMessageEntity, SdlSessionMessageDTO> {


    void saveMessage(SdlSessionMessageEntity message);

    List<SdlSessionMessageEntity> getRecentMessages(String roomId, long since);


    List<SdlSessionMessageEntity> getUserSessions(Long userId);

    List<SdlSessionMessageDTO> getHistoryMessages(Long sessionId,Integer page , Integer pageSize);

    List<SdlSessionMessageDTO> getMsgList(Long receiverId);

    Integer readMsg(Long receiverId, Long senderId);

    int getUnreadMsg(Long receiverId);

    List<SdlSessionMessageEntity> verificationCard(String patientCard);

}

